package com.example.testlauncher;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class ScreenOnBroadcastReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals(Intent.ACTION_SCREEN_ON)) {
			Intent newIntent = new Intent(context, ChooserActivity.class);			
			newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
			context.startActivity(newIntent);
		}
	}

}